package com.zenithmind.task.pojo.query;

import com.zenithmind.common.query.BaseQuery;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 任务分配查询条件
 *
 * @author ZenithMind Team
 * @since 2025-01-09
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Schema(description = "任务分配查询参数")
public class TaskAssignmentQuery extends BaseQuery {

    @Schema(description = "任务ID")
    private String taskId;

    @Schema(description = "被分配人ID")
    private String assigneeId;

    @Schema(description = "分配人ID")
    private String assignerId;

    @Schema(description = "分配类型：1-主要负责人，2-协作者，3-审核者，4-观察者")
    private Integer assignmentType;

    @Schema(description = "分配状态：1-待接受，2-已接受，3-已拒绝，4-已取消")
    private Integer status;

    @Schema(description = "角色权限：1-只读，2-编辑，3-管理")
    private Integer rolePermission;

    @Schema(description = "项目ID")
    private String projectId;

    @Schema(description = "开始时间")
    private LocalDateTime startTime;

    @Schema(description = "结束时间")
    private LocalDateTime endTime;

    @Schema(description = "是否包含任务信息")
    private Boolean includeTask;
}
